package com.aspose.cells;

abstract class zuz {
   public static double a(double var0, double var2, double var4) {
      if (var0 <= 0.0D) {
         return 0.0D;
      } else {
         double var6 = Math.pow(var2 * var0, var2) * Math.pow(var4, var4) / Math.pow(var2 * var0 + var4, var2 + var4);
         return Math.sqrt(var6) / var0 / zcl.a(var2 / 2.0D, var4 / 2.0D);
      }
   }

   public static double b(double var0, double var2, double var4) {
      if (var0 >= 0.0D && var2 >= 1.0D && var4 >= 1.0D && var2 < 1.0E10D && var4 < 1.0E10D) {
         if (var0 == 0.0D) {
            return 1.0D;
         } else {
            try {
               return zcl.e(var4 / (var4 + var2 * var0), var4 / 2.0D, var2 / 2.0D);
            } catch (Exception var7) {
               return 0.0D;
            }
         }
      } else {
         return 0.0D;
      }
   }

   public static double a(double var0, double var2, double var4, boolean[] var6) {
      var6[0] = true;
      if (var0 >= 0.0D && var0 <= 1.0D && var2 >= 1.0D && var4 >= 1.0D && var2 < 1.0E10D && var4 < 1.0E10D) {
         if (var0 == 0.0D) {
            var6[0] = false;
            return 1.0E9D;
         } else if (var0 == 1.0D) {
            var6[0] = false;
            return 0.0D;
         } else {
            try {
               zaon var7 = new zaon(var2, var4, var0);
               if (var0 < 1.0E-5D) {
                  if (var7.a(2000.0D, 100, 1.0E-10D)) {
                     var6[0] = false;
                     return var7.a();
                  } else {
                     return Double.NaN;
                  }
               } else if (var7.a(1.0D, 100, 1.0E-10D)) {
                  var6[0] = false;
                  return var7.a();
               } else {
                  return Double.NaN;
               }
            } catch (Exception var8) {
               return 0.0D;
            }
         }
      } else {
         return Double.NaN;
      }
   }
}
